<tagLib name="html" />
<script language="javascript" src="/Public/static/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
<div id="main-content">
    <div id="main" class="main">

            <div class="user-hd">
                <h2>财务管理>>{$page_title}</h2>
            </div>
            <div class="clearfix searchspin">
				<dl>
					<dt>筛选条件:</dt>
					<dd>	
						<form action="{:U('Admin/Analyse/cinemaFinancialReg')}" method="get">
						<div class="fl">
							创建时间：<input type="text" name="create_time_start" id="create_time_start" value="{$_GET['create_time_start']}" class="Wdate bg-input mr5" <literal>onfocus="WdatePicker({maxDate:'#F{$dp.$D(\'create_time_end\')||\'%y-%M-%d\'}'})"</literal> readonly="readonly" size="30" style="width: 90px;"/>
							<input type="text" name="create_time_end" id="create_time_end" value="{$_GET['create_time_end']}" class="Wdate bg-input mr5" <literal>onfocus="WdatePicker({minDate:'#F{$dp.$D(\'create_time_start\')}',maxDate:'%y-%M-%d'})"</literal> readonly="readonly" size="30" style="width: 90px;" />
							登记状态：
							<select name="status" class="" style="height:30px;">
								<option value="0" <?php if($_GET['status']==0){echo 'selected';} ?> >-</option>
								<option value="1" <?php if($_GET['status']==1){echo 'selected';} ?> >已登记</option>
								<option value="2" <?php if($_GET['status']==2){echo 'selected';} ?> >未登记</option>
							</select>					
							<input type="text" maxlength="36" name="keywords" value="{$keywords}" placeholder="主机号或影院名称" class="bg-input" />	
							<a href="{:U('Admin/Analyse/cinemaFinancialReg')}" class="sblue-btn" style="height:28px;width:68px;">清空 </a>
							<input type="submit" class="sblue-btn" value="检索" />						
						</div>
						<div class="clear"></div>
						</form>
					</dd>
				</dl>
            </div>
            <div class="spin-cont">
                <table>
                    <tr>
						<th style="width: 180px;">交易流水号</th>
                        <th style="width: 180px;">创建时间</th>
						<th style="width: 100px;">主机号</th>
						<th style="width: 180px;">影院名称</th>
						<th style="width: 100px;">充值金额</th>
                        <th style="width: 100px;">登记状态</th>
                        
                        <th>操作</th>
                    </tr>
                    <volist name="list" id="vo">
                    <tr>
						<td>{$vo.sn}</td>
						<td>{$vo.create_time|date="Y-m-d H:i", ###}</td>
						<td>{$vo.host_name}</td>
						<td>{$vo.cinema_name}</td>
						<td>{$vo.money}</td>
                        <td>
							<switch name="vo.status" >
								<case value="0"><font color="red">未登记</font></case>
								<case value="1"><font color="green">已登记</font></case>
							</switch>												
						</td>
                        
                        <td>
							<switch name="vo.status" >
								<case value="0"><a href="{:U('Analyse/cinemaFinancialCheckin', array('recharge_log_id'=>$vo[recharge_log_id]))}">到款登记</a></case>
								<case value="1"><a href="{:U('Analyse/cinemaFinancialCheckinDetail', array('recharge_log_id'=>$vo[recharge_log_id]))}">详情</a></case>
							</switch>							
						</td>
                    </tr>
                    </volist>
                </table>
                <div class="page txt-center">
                    {$show}
                </div>
            </div>

    </div>
</div>
<script type="text/javascript">
function checkIn(id)
{
	$.ajax({
		url:"/Admin/Analyse/cinemaFinancialUpdate",
		type:"post",
		data:{recharge_log_id:id},
		success:function(data,status,xhr){
				if (data.status==1) {
					alertMessage(data.info + ' 页面即将自动跳转~', 1, 2);
					if (data.url) {
						delayGoToPage(data.url, 2000);
					}
				}else{
					alertMessage(data.info, '', 2);
				}
		},
	});
}
</script>